package com.xtkj.superclub_entity.entity.photo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain=true)
@ToString
@TableName("z_team_album")
public class TeamAlbum implements Serializable {
    /*
    驴友队相册，里面包含创建活动时建立的相册和 用户自己创建的相册
    其中相册类型为1代表创建活动时建立的相册,相册类型为1代表用户自己创建的相册
    */
    @TableId(value = "team_album_id",type = IdType.INPUT)
    private String teamAlbumId;//驴友队相册id
    @TableId(value = "album_id",type = IdType.INPUT)
    private String albumId;//相册id
    private String albumName;//相册名称
    private int albumType;//相册类型
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;//创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;//修改时间

    public TeamAlbum(String teamAlbumId, String albumId, String albumName, int albumType, Date createTime) {
        this.teamAlbumId = teamAlbumId;
        this.albumId = albumId;
        this.albumName = albumName;
        this.albumType = albumType;
        this.createTime = createTime;
    }
}
